﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 测试项目
{
    class Organization : IOrganization
    {
        public IEnumerable<IOrganizationEntity> GetOrganization()
        {
            yield return new OrganizationEntity { Id = "001", Name = "无锡元珑软件科技有限公司" };
            yield return new OrganizationEntity { Id = "002", Name = "开发部",Parent = "001" };
            yield return new OrganizationEntity { Id = "002-1", Name = "开发组长",Parent = "002" };
            yield return new OrganizationEntity { Id = "002-2", Name = "开发组员", Parent = "002" };
            yield return new OrganizationEntity { Id = "003", Name = "经营部",Parent = "001" };
        }

        public IEnumerable<IUserEntity> GetUsers(string organization_id)
        {
            yield return new UserEntity { UserID = "1", NickName = "11" };
            yield return new UserEntity { UserID = "2", NickName = "22" };
            yield return new UserEntity { UserID = "admin", NickName = "管理员" };
        }
    }
}
